package cn.cdeden.system.recycle;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ProjectName : ecm_hou
 * @Package : com.cdyd.ecm.file.recycle.factory
 * @ClassName : RecycleFactory
 * @Author : Yu.
 * @Description : // TODO 回收站工厂
 * @Date : 2022/10/13 14:02
 * @Version : 1.0
 */
@Component
public class RecycleFactory {

    private final String RECYCLE = "Recycle";

    @Autowired
    private Map<String, RecycleInterface> recycleMap;

    public RecycleInterface getRecycle(String recycle) {
        return recycleMap.get(recycle + RECYCLE);
    }
}
